package day8;

/**
 * @author oldliu
 * @since 1.0
 */
public class LandLord {
    public static void main(String[] args) throws InterruptedException {
        //地主
        Thread.currentThread().setName("周扒皮");
        ThreadWorker w=new ThreadWorker("周长工");
        w.start();
        while (true){
            Thread.sleep(3000);
            w.interrupt();//吵醒！！！
            System.out.println("喊工人干活，自己继续睡觉！！！");
        }
    }
}
